package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GCM_MSGCAT"
 *     
*/
public class CcpGcmMsgcat implements Serializable {

    /** identifier field */
    private String msgcatGuid;

    /** nullable persistent field */
    private String msgcatNumber;

    /** persistent field */
    private String msgcatLabel;

    /** persistent field */
    private String name;

    /** nullable persistent field */
    private String catDesc;

    /** persistent field */
    private String sysFlag;

    /** nullable persistent field */
    private String paretntcatGuid;

    /** nullable persistent field */
    private String genFlag;

    /** persistent field */
    private String catOrder;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpGcmMsgcat(String msgcatGuid, String msgcatNumber, String msgcatLabel, String name, String catDesc, String sysFlag, String paretntcatGuid, String genFlag, String catOrder, String reserved1, String reserved2, String reserved3) {
        this.msgcatGuid = msgcatGuid;
        this.msgcatNumber = msgcatNumber;
        this.msgcatLabel = msgcatLabel;
        this.name = name;
        this.catDesc = catDesc;
        this.sysFlag = sysFlag;
        this.paretntcatGuid = paretntcatGuid;
        this.genFlag = genFlag;
        this.catOrder = catOrder;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpGcmMsgcat() {
    }

    /** minimal constructor */
    public CcpGcmMsgcat(String msgcatGuid, String msgcatLabel, String name, String sysFlag, String catOrder) {
        this.msgcatGuid = msgcatGuid;
        this.msgcatLabel = msgcatLabel;
        this.name = name;
        this.sysFlag = sysFlag;
        this.catOrder = catOrder;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="MSGCAT_GUID"
     *         
     */
    public String getMsgcatGuid() {
        return this.msgcatGuid;
    }

    public void setMsgcatGuid(String msgcatGuid) {
        this.msgcatGuid = msgcatGuid;
    }

    /** 
     *            @hibernate.property
     *             column="MSGCAT_NUMBER"
     *             length="10"
     *         
     */
    public String getMsgcatNumber() {
        return this.msgcatNumber;
    }

    public void setMsgcatNumber(String msgcatNumber) {
        this.msgcatNumber = msgcatNumber;
    }

    /** 
     *            @hibernate.property
     *             column="MSGCAT_LABEL"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getMsgcatLabel() {
        return this.msgcatLabel;
    }

    public void setMsgcatLabel(String msgcatLabel) {
        this.msgcatLabel = msgcatLabel;
    }

    /** 
     *            @hibernate.property
     *             column="NAME"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 
     *            @hibernate.property
     *             column="CAT_DESC"
     *             length="200"
     *         
     */
    public String getCatDesc() {
        return this.catDesc;
    }

    public void setCatDesc(String catDesc) {
        this.catDesc = catDesc;
    }

    /** 
     *            @hibernate.property
     *             column="SYS_FLAG"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getSysFlag() {
        return this.sysFlag;
    }

    public void setSysFlag(String sysFlag) {
        this.sysFlag = sysFlag;
    }

    /** 
     *            @hibernate.property
     *             column="PARETNTCAT_GUID"
     *             length="32"
     *         
     */
    public String getParetntcatGuid() {
        return this.paretntcatGuid;
    }

    public void setParetntcatGuid(String paretntcatGuid) {
        this.paretntcatGuid = paretntcatGuid;
    }

    /** 
     *            @hibernate.property
     *             column="GEN_FLAG"
     *             length="1"
     *         
     */
    public String getGenFlag() {
        return this.genFlag;
    }

    public void setGenFlag(String genFlag) {
        this.genFlag = genFlag;
    }

    /** 
     *            @hibernate.property
     *             column="CAT_ORDER"
     *             length="10"
     *             not-null="true"
     *         
     */
    public String getCatOrder() {
        return this.catOrder;
    }

    public void setCatOrder(String catOrder) {
        this.catOrder = catOrder;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="100"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("msgcatGuid", getMsgcatGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGcmMsgcat) ) return false;
        CcpGcmMsgcat castOther = (CcpGcmMsgcat) other;
        return new EqualsBuilder()
            .append(this.getMsgcatGuid(), castOther.getMsgcatGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getMsgcatGuid())
            .toHashCode();
    }

}
